<template>
	<view class="content">
		<view class="box" v-for="item in list" :key="item.id">
			<view class="imgbox">
				<image :src="item.coverImg" mode=""></image>
			</view>
			<view class="text">
				{{item.title}}
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[]
			}
		},
		onLoad() {
			this.list = uni.getStorageSync('article')
			console.log(this.list)
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		padding: 30rpx;
		.box{
			background-color: #fff;
			border-radius: 20rpx;
			padding: 25rpx;
			margin-bottom: 30rpx;
			.imgbox{
				background: gray;
				width: 640rpx;
				height: 480rpx;
				border-radius: 20rpx;
				image{
					width: 640rpx;
					height: 480rpx;
					border-radius: 20rpx;
				}
			}
			.text{
				padding: 40rpx 0;
				text-align: center;
				font-weight: 600;
			}
			
		}
	}
</style>
